home *** CD-ROM | disk | FTP | other *** search
/ Skunkware 5 / Skunkware 5.iso / src / Tools / vg-2.03 / vg.h < prev   
Encoding:
C/C++ Source or Header  |  1995-05-03  |  1.4 KB  |  76 lines

  1. /*
  2.  * Copyright (C) 1990-1992 by Michael Davidson.
  3.  * All rights reserved.
  4.  *
  5.  * Permission to use, copy, modify, and distribute this software
  6.  * and its documentation for any purpose and without fee is hereby
  7.  * granted, provided that the above copyright notice appear in all
  8.  * copies and that both that copyright notice and this permission
  9.  * notice appear in supporting documentation.
  10.  *
  11.  * This software is provided "as is" without express or implied warranty.
  12.  */
  13.  
  14. /*
  15.  * The Graphics Interchange Format(c) is the Copyright property
  16.  * of CompuServe Incorporated.
  17.  *
  18.  * GIF(sm) is a Service Mark property of CompuServe Incorporated.
  19.  */
  20.  
  21. #ifndef    VG_H
  22. #define    VG_H
  23.  
  24. #ifndef    STATIC
  25. #define    STATIC    static
  26. #endif
  27.  
  28. /*
  29.  * list structure and definitions
  30.  */
  31. typedef struct __list
  32. {
  33.     int            flags;
  34.     char        *name;
  35.     struct __list    *next;
  36.     struct __list    *prev;
  37. } list_t;
  38.  
  39. /*
  40.  * function prototypes
  41.  */
  42. list_t    *fileListCreate(char **v);
  43. list_t    *fileListSort(list_t *f);
  44.  
  45. void    fileMenu(list_t *filelist);
  46.  
  47. void    showFiles(list_t *filelist);
  48.  
  49. void    cleanup();
  50.  
  51. void    fatal(int err, char *fmt, ...);
  52.  
  53.  
  54. void    *alloca(int);
  55.  
  56. #define    PC_GRAPHICS
  57. /*
  58.  * 
  59.  */
  60. #define    F_NEXT    1
  61. #define    F_PREV    2
  62. #define    F_ESC    3
  63. #define    F_REDRAW 4
  64.  
  65. #define    F_GIF        1
  66. #define    F_JPEG        2
  67. #define    F_MACP        3
  68. #define    F_PBM        4
  69. #define    F_PGM        5
  70. #define    F_PPM        6
  71. #define    F_TARGA        7
  72. #define    F_PCD_O        8
  73. #define    F_PCD_I        9
  74.  
  75. #endif    /* VG_H */
  76.